package com.hospital.common.core.exception;

public enum TimeTaskExptionEnum implements ServiceExcepitonEnum {
    INVALIDE_DATE_STRING(400, "输入日期格式错误"),
    SERVICE_ERROR(400, "服务器异常"),
    REQUEST_NULL(400, "请求错误"),
    FILE_READING_ERROR(400, "FILE_READING_ERROR!"),
    FILE_NOT_FOUND(400, "FILE_NOT_FOUND!"),
    ;

    TimeTaskExptionEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    private Integer code;
    private String message;

    @Override
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
